<? 

    $submenu = array(
        'index'  => strtotitle(__('attends')),
        'traffic'  => strtotitle(__('traffic'))
    );

?>

<ul class="submenu">
    <? foreach($submenu as $key=>$title): ?>
    <li>
        <? if($page == $key): ?>
        <strong><?= $title ?></strong>
        <? else: ?>
        <?= $this->Html->link($title, '/reports/' . $key) ?>
        <? endif; ?>
    </li>
    <? endforeach; ?>
</ul>